package homework.job5

import akka.actor.{ActorRef, ActorSystem, Props}

object Job5Demo {
  val actorSystem =ActorSystem("ActorSystem")
  def main(args: Array[String]): Unit = {
    val master: ActorRef =actorSystem.actorOf(Props[Master],"master")
    master ! "start"
    val slaver: ActorRef =actorSystem.actorOf(Props(new Slave("slaver",master)))
    slaver ! "start"
  }
}
